﻿-ViewData["print"] = true;
-var user = ViewData["user"] as IUser
%html{xmlns="http://www.w3.org/1999/xhtml"}
  -var url_c = ViewData["Controller"] as string
  -var url_a = ViewData["Action"] as string
  %head
    %title=(ViewData["Base"].ToString().ToLower().IndexOf("front") == -1 && ViewData["Base"].ToString().ToLower().IndexOf("mosnot.ru") == -1) ? "Табеллион-BackOffice" : "Табеллион" 
    ="<base href=\"" + ViewData["Base"] + "\" />"
    %link{rel="stylesheet",href=String.Format("css/print{0}.css", (ViewData.ContainsKey("isA5format") ? "_a5" : "")), type="text/css"}
    -if(ViewData.ContainsKey("styles"))
      -foreach(string style in ViewData["styles"] as List<string>)
        -var href = style.StartsWith("../") ? style.Remove(0,3) : "css/"+style
        %link{rel="stylesheet",href=string.Format("{0}",href),type="text/css"}
    ="<!--[if lte IE 6]> <link rel=\"stylesheet\" href=\"css/ie6.css\" type=\"text/css\" media=\"screen\" /> <![endif]-->"
    ="<!--[if lte IE 7]> <link rel=\"stylesheet\" href=\"css/ie6.css\" type=\"text/css\" media=\"screen\" /> <![endif]-->"
    %link{rel="icon",href="favicon.ico",type="image/x-icon"}
  %body
    _